<?php

require_once ('source\db\db_base.php');

/** 
 * @author Administrator
 * 
 * 
 */
class db_user extends db_base {

	function __construct() {
		global $_SGLOBAL;
		parent::__construct($_SGLOBAL['db']);
	}
	
	public function get_userinfo($username) {
		return $this->db->fetch_array($this->db->query("SELECT * FROM ".tname("member")." WHERE username='$username'"));
	}
	
	public function add_user($setarr)
	{
		return inserttable("member",$setarr,1);
	}
}

?>